package com.it.rabbitmqwithjiang.Listener;

import com.it.rabbitmqwithjiang.Dao.MessageDao;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class DirectListener1 {

	@RabbitListener(queues = "directqueue1")
	public void DirectMessage(MessageDao messageDao) throws Exception {
		System.out.println("directqueue1队列监听器1号收到消息"+ messageDao.toString());
	}
}
